import InvesterPortfolioManage from './pages/invester-portfolio-manage/invester-portfolio-manage.vue'
import InvesterSubscription from './pages/invester-subscription/invester-subscription.vue'
import InvesterList from './pages/invester-list/invester-list.vue'
import BuytypeList from './pages/buytype-list/buytype-list.vue'
import BlackListManage from './pages/blacklist-manage/blacklist-manage.vue'
import SubscriptionManage from './pages/subscription-manage/subscription-manage.vue'
import PackageActivity from './pages/package-activity/package-activity.vue'

export default function(router) {
  router.map({
    '/': {
      component: InvesterPortfolioManage,
      name: 'InvesterPortfolioManage'
    },
    '/betaId/:id': {
      component: InvesterSubscription,
      name: 'InvesterSubscription'
    },
    '/invester': {
      component: InvesterList,
      name: 'InvesterList'
    },
    '/buytype': {
      component: BuytypeList,
      name: 'BuytypeList'
    },
    '/blacklist': {
      component: BlackListManage,
      name: 'BlackListManage'
    },
    '/subscription': {
      component: SubscriptionManage,
      name: 'SubscriptionManage'
    },
    '/package-activity': {
      component: PackageActivity,
      name: 'PackageActivity'
    }
  })

  router.redirect({
    '*': '/'
  })
}
